 
function checkScript(frmname,element)
{
	  
	/*el boton de submit pasa a enabled con este comando
	  de esta manera solo se activa si javascript esta activado */
	  
	 document.forms[frmname].elements[element].disabled=false;
	 
   }

 function Compare_Fields(frmname,field1 ,field2)
      {    
	   var  valueOne = document.forms[frmname].elements[field1].value;
		var valueTwo = document.forms[frmname].elements[field2].value;
           if(valueOne != valueTwo)
             {
                  alert("Clave no coincide , favor confirmar");
                   
                   return false;
               } else { return true; }

            }
			
			/*
			
 function addRow(n ,frmName ,name)
{
     
    var  count = 0;
	 var count2 = 1;
	 var counter =0;
   var arName= new Array();
   for(var x=0 ; x<(2*n) ;x++)
    {
	     arName[x]="elemento"+x;
	      
	     }
 
   do{ 	  
     
	  
var tbody = document.getElementById(frmName).getElementsByTagName(name)[0];
var row = document.createElement("TR");
var cell1 = document.createElement("TD");
var inp1 =  document.createElement("INPUT");
inp1.setAttribute("type","button");
inp1.setAttribute("value","Eliminar");
cell1.appendChild(inp1);
var cell2 = document.createElement("TD");
var inp2 =  document.createElement("INPUT");
cell2.innerHTML = "<br><b>Area de Laboratorio</b>.....<b>Tecnico a Cargo</b>  <br>";
inp2.setAttribute("type","text");
inp2.setAttribute("name",arName[count]);
         
		count++;
var inp3 =  document.createElement("INPUT");
inp3.setAttribute("type","text");
inp3.setAttribute("name",arName[count]);
       
cell2.appendChild(inp2);
cell2.appendChild(inp3);
row.appendChild(cell1);
row.appendChild(cell2);
tbody.appendChild(row);
    count++;
	counter++;
 
   } while(counter<= n-1);
	
	 } 

			*/  
			  